﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using XCore.Dependency;
using XCore.Web.Mvc;

namespace Web.Admin
{
    public class AdminControllerBase : XCoreControllerBase
    {
        /// <summary>
        /// 当前登录管理员信息
        /// </summary>
        protected AdminSession Session { get; }
        /// <summary>
        /// 日志采集
        /// </summary>
        protected AdminLogger Logger { get; }
        /// <summary>
        /// EF 上下文对象
        /// </summary>
        protected AdminDbContext ADC { get; }
        public AdminControllerBase()
        {
            Session = IocCollection.Resolve<AdminSession>();
            Logger = IocCollection.Resolve<AdminLogger>();
            ADC = IocCollection.Resolve<AdminDbContext>();
        }
    }
}
